package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.model.MemberGrade;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberGradeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MemberGrade record);

    int insertSelective(MemberGrade record);

    MemberGrade selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MemberGrade record);

    int updateByPrimaryKey(MemberGrade record);

    List<MemberGrade> query();
    /**
     * 根据成长值查询会员等级
     * @param growthValue
     * @return
     */
    int selectGradeIdByGrowthValue(@Param("growthValue") double growthValue);
}